package com.jz.beijianbao.legalperson.personEnum;

public enum PersonEnum {

    QIYONG(1,"启用"),JINYONG(0,"禁用");

    private Integer state;
    private String stateName;

    PersonEnum(Integer state,String stateName){
        this.stateName=stateName;
        this.state =state;
    }

    public static String getName(Integer state){
        for (PersonEnum per: PersonEnum.values()) {
            if(per.state ==state){
                return per.stateName;
            }
        }
        return null;
    }
    public Integer getState(){
        return state;
    }
    public String getStateName(){
        return stateName;
    }

}
